
var bank = 26000;

var travel = 1000;



function subtractTravel()

{


	if( bank > travel )

		{

		bank = bank - travel;

		document.getElementById( "main-frame" ).contentWindow.document.getElementById( "bankroll" ).innerHTML = "Cost of Travel: " + "$" + bank;

		}

	else

		{

		gameOver();

		}

}
function gameOver()
{
	//delete all
	alert( "GAME OVER" );
	location.href = "index.html";
}



